package com.imooc.restaurant.dao;

import com.imooc.restaurant.po.RestaurantPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface RestaurantDao {

    @Select("SELECT id, name , status , address, settlement_id as settlementId ,date from restaurant WHERE id = #{id}")
    RestaurantPO selectRestaurant(Integer id);
}
